<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html"
      
       xmlns:p="http://primefaces.org/ui" >
   <h:head>
              <h:form>  
    <p:growl id="messages"/>
 
    <p:menubar>
        <p:submenu label="File" icon="ui-icon-document">
            <p:menuitem value="Altas" url="./altas.xhtml" />
            <p:separator />
            <p:menuitem value="Bajas" url="./bajas.xhtml" />
        </p:submenu>
    </p:menubar>
</h:form>
    </h:head>
    <h:body style="font-size: 12px">
        <h:form>
            
            <p:panel header="bajas de libros " style="width: 600px">
                <p:messages closable="true" autoUpdate="true"/>
                <p:panelGrid columns="3">
                    
                    <h:outputText value="autor"/><p:inputText id="autor" value="#{customer.autor}" required="true"/>
                    
                    
                    
                </p:panelGrid>
                <p:commandButton update="" actionListener="#{customer.bajas()}" value="eliminar" icon="ui-icon-disk"/>
                
                
            </p:panel>
            
            <br/>
            <p:panel style="width: 600px">
                <p:dataTable paginator="true" rows="10" value="#{customer.libro}" var="aux">
                <p:column headerText="CODIGO">
                    <h:outputText value="#{aux.id}"/>
                </p:column>
                <p:column headerText="Titulo">
                    <h:outputText value="#{aux.titulo}"/>
                </p:column>
                <p:column headerText="Autor">
                    <h:outputText value="#{aux.autor}"/>
                </p:column>
                <p:column headerText="Editorial">
                    <h:outputText value="#{aux.editorial}"/>
                </p:column>
            </p:dataTable>
                </p:panel>
        </h:form>
        
        
    </h:body>
</html>
